package VO;

import java.io.Serializable;

import PO.*;


public class LessonVO implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	int id;
	private String name;
	private Department department;
	private String time;
	private String place;
	private String style;
	private String book;
	private String trunk;
	private String introduction;
	private String Reference;
	private int point;
	private int max;

	
	public LessonVO (LessonPO po)
	{
		
		this.id = po.getID();
		this.book = po.getBook();
		this.department = po.getDepartment();
		this.time = po.getTime();
		this.introduction = po.getIntroduction();
		this.place= po.getPlace();
		this.point = po.getPoint();
		this.Reference = po.getReference();
		this.style = po.getStyle();
		this.trunk = po.getTrunk();
		this.name = po.getName();
		this.max = po.getMax();
		
	}
	public LessonPO getPO()
	{

		return (new LessonPO(id,  name,  department, time,  place,
				 style,  point,  trunk,  book,
				 Reference,  introduction,max));
		
	}
	public void addInfo(String trunk2, String book2,
			String reference2, String introduction2) {
		trunk = trunk2;
		book = book2;
		Reference = reference2;
		introduction = introduction2;
		
	}
	public LessonVO(int i, String n, Department dep, String t, String p,
			String sty, int po,int ma) {
		id = i;
		name = n;
		department = dep;
		time = t;
		place = p;
		style = sty;
		point = po;
		max=ma;
		
	}
	public LessonVO(int i, String n, Department dep,
			String sty, int po,int ma) {
		id = i;
		name = n;
		department = dep;
		style = sty;
		point = po;
		time = "";
		place = "";
		max=ma;
	}

	public LessonVO(int i, String n) {

		this(i, n, Department.ȫУ, null, null, null, 0,Integer.MAX_VALUE);
	}

	public LessonVO(int i, String n, Department dep, String t, String place2,
			String sty, int point2, String trunk2, String book2,
			String reference2, String introduction2) {
		// TODO Auto-generated constructor stub
		this(i, n, dep, t, place2, sty, point2,Integer.MAX_VALUE);
		trunk = trunk2;
		book = book2;
		Reference = reference2;
		introduction = introduction2;
	}

	public int getPoint() {
		return (point);

	}

	public int getID() {
		// TODO Auto-generated method stub
		return id;
	}

	public String getName() {

		return (name);
	}

	public String getTime() {
		return time;

	}

	public String getPlace() {
		return place;

	}

	public String getBook()
	{
		return book;
	}
	public String getTrunk()
	{
		
		return trunk;
	}
	public String getReference()
	{
		
		return Reference;
	}
	public String getIntroduction()
	{
		
		return introduction;
	}
	
	public String getStyle() {

		return style;
		
	}

	public Department getDepartment() {
		return (department);
	}

	public int getMax()
	{
		return max;
	}
}
